From: Giovanni Campagna Date: Thu, 12 Jan 2012 18:41:02 +0000 (+0100) Subject: ModemManager: fix dbus parameters X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7056 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7705a65beb3fbfc0ae1eb473a0b88c4895020d9e;p=gnome-shell.git ModemManager: fix dbus parameters Gsm.GetRegistrationInfo and Cdma.GetServingSystem return a single argument consisting of a tuple, not three separate arguments. This is a regression from the GDBus port. https://bugzilla.gnome.org/show_bug.cgi?id=670005 --- diff --git a/js/misc/modemManager.js b/js/misc/modemManager.js index 654ee3763..35b80b1e7 100644 --- a/js/misc/modemManager.js +++ b/js/misc/modemManager.js @@ -10,9 +10,7 @@ const Signals = imports.signals; const ModemGsmNetworkInterface = - - - + @@ -35,9 +33,7 @@ const ModemCdmaInterface = - - - + @@ -72,7 +68,7 @@ const ModemGsm = new Lang.Class({ this.operator_name = this._findOperatorName(name, code); this.emit('notify::operator-name'); })); - this._proxy.GetRegistrationInfoRemote(Lang.bind(this, function(result, err) { + this._proxy.GetRegistrationInfoRemote(Lang.bind(this, function([result], err) { if (err) { log(err); return; @@ -187,7 +183,7 @@ const ModemCdma = new Lang.Class({ }, _refreshServingSystem: function() { - this._proxy.GetServingSystemRemote(Lang.bind(this, function(result, err) { + this._proxy.GetServingSystemRemote(Lang.bind(this, function([result], err) { if (err) { // it will return an error if the device is not connected this.operator_name = null;